var lpr;

/**
 * 设置结果接收对象
 * @param _opinionPrice
 */
function setModel(_lpr) {
    if (_lpr == undefined || !(_lpr instanceof com.jf.crawl.model.OpinionLpr)) {
        throw new java.lang.Exception("lpr 对象为空");
    }
    log.info("lpr {}", _lpr)
    lpr = _lpr;
}

function crawler() {
    var html = Get("http://www.chinamoney.com.cn/fe/static/html/column/basecurve/benchmarks/loanprimerate/latestLoanPrimeRate.html");
    var doc = Jsoup.parse(html);
    var tds = doc.select("td.dreport-row2");
    lpr.setOneYear(commonUtil.string2Decimal(tds.get(1).text()));
    return true;
}